package com.arpa.ntocc.common.service;

import com.arpa.ntocc.common.domain.entity.Client;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 客户端 服务类
 * </p>
 *
 * @author LEO
 * @since 2019-08-12
 */
public interface IClientService extends IService<Client> {

    /**
     * 校验clientId和clientSecret是否正确
     * @param clientId
     * @param clientSecret
     * @return
     */
    boolean verificationIdAndSecret(String clientId, String clientSecret);

    /**
     * 查询client
     * @param clientId
     * @param clientSecret
     * @return
     */
    Client getClient(String clientId, String clientSecret);
}
